//
//  GSCommonPrefixProfile.h
//  GSLoginDemo
//
//  Created by guoshikeji_a on 2018/7/27.
//  Copyright © 2018年 guoshikeji. All rights reserved.
//

#import <QMUIKit.h>
#import <Masonry.h>
//
#import "GSCommonLoginDataManager.h"
#import "GSCommonLoginAppInfomation.h"
#import "UIView+LoginToast.h"

#define UserCommonLoginSuccessNotification @"UserCommonLoginSuccessNotification"

#pragma mark -

#define GSLOGINRGB(r,g,b)                      [UIColor colorWithRed:r/255.f green:g/255.f blue:b/255.f alpha:1.f]
#define GSLOGINRGBRGBA(r,g,b,a)                   [UIColor colorWithRed:r/255.f green:g/255.f blue:b/255.f alpha:a]
#define GSLOGINRGBRGBHEX(hex)                     [UIColor colorWithRed:((float)((hex & 0xFF0000) >> 16))/255.0 green:((float)((hex & 0xFF00) >> 8))/255.0 blue:((float)(hex & 0xFF))/255.0 alpha:1.0]
#define GSLOGINRGBRGBHEXA(hex,a)             [UIColor colorWithRed:((float)((hex & 0xFF0000) >> 16))/255.0 green:((float)((hex & 0xFF00) >> 8))/255.0 blue:((float)(hex & 0xFF))/255.0 alpha:a]

#define GSLOGINScreenWidth [UIScreen mainScreen].bounds.size.width
#define GSLOGINScreenHeight [UIScreen mainScreen].bounds.size.height

//#define GSLOGIN_IS_IPHONE_X ((GSLOGINScreenHeight == 812.0f) ? YES:NO)

#define GSLOGIN_Height_NavBar [[AKUIManager shared] heightNaviBar]

#define GSLOGIN_Height_StatusBar [[AKUIManager shared] heightStatusBar]



#pragma mark - colors
#define GSLOGIN_THEME_COLOR [UIColor darkMainColor]
#define GSLOGIN_THEME_SHADOW_COLOR [[UIColor darkMainColor] colorWithAlphaComponent:.14]
//
#define GSLOGIN_GRAY_COLOR GSLOGINRGBRGBHEX(0x9A9A9A)
#define GSLOGIN_GRAY_SHADOW_COLOR GSLOGINRGBRGBHEXA(0x000000,0.17)
//
#define GSLOGIN_TEXTFIELD_PLACEHOLDER_COLOR GSLOGINRGBRGBHEX(0xD9D9D9)

//多语言
//#define GSLoginLocalized(key)  [[NSBundle bundleWithPath:[[NSBundle mainBundle] pathForResource:@"en" ofType:@"lproj"]] localizedStringForKey:(key) value:nil table:@"GSCommonLoginLocalization"]
#define GSLoginLocalized(key) BCLoginLocalizedKey(key)
#define GSLoginLocalizedFormatString(fmtKey, ...) [NSString stringWithFormat:BCLoginLocalizedKey(fmtKey), __VA_ARGS__]
